﻿@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Tudou.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using Tudou.Abp.Identity.Localization
@model Tudou.Abp.Identity.Web.Pages.Identity.Roles.EditModalModel
@inject IHtmlLocalizer<IdentityResource> L
@{
    Layout = null;
}
<form asp-page="/Identity/Roles/EditModal">
    <abp-modal>
        <abp-modal-header title="@L["Edit"].Value"></abp-modal-header>
        <abp-modal-body>
            <abp-input asp-for="Role.Id" />
            <abp-input asp-for="Role.ConcurrencyStamp" />
            @if (Model.Role.IsStatic)
            {
                <abp-input asp-for="Role.Name" readonly="true" />
            }
            else
            {
                <abp-input asp-for="Role.Name" />
            }
            <abp-input asp-for="Role.IsDefault" />
            <abp-input asp-for="Role.IsPublic" />
        </abp-modal-body>
        <abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer>
    </abp-modal>
</form>
